package com.zyy.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;


import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_user")
@ApiModel(value="User对象", description="用户表")
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @Id
    @ApiModelProperty(value = "用户id")
    @TableId(value = "uid", type = IdType.AUTO)
    private  Integer uid;

    @ApiModelProperty(value = "用户昵称")
    private  String name;


    @ApiModelProperty(value = "用户头像")
    private  String picture;

    @ApiModelProperty(value = "性别")
    private  Integer sex;

    @ApiModelProperty(value = "年龄")
    private  Integer age;

    @ApiModelProperty(value = "生日")
    private  String birthday;

    @ApiModelProperty(value = "用户密码")
    private  String password;

    @ApiModelProperty(value = "手机号")
    private  String iphone;

    @ApiModelProperty(value = "用户真是姓名")
    private  String realName;

    @ApiModelProperty(value = "1普通用户 2供应商 3管理员")
    private  Integer status;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
